DevJourney

Python/RegEx/Extract all words of a string starting with a vowel/Extract all words of a string starting with a vowel.py

import re 

s = str(input("Enter statement: "))
res = re.findall(r'\b[aeiouAEIOU]\w*',s)
print(res)
View on GitHub